import request from '@/utils/request'
import type { InitOptions, BaseResponse, RequestOptions } from '@/utils/request'
export default <T extends BaseResponse> (o: RequestOptions, i?: InitOptions): Promise<T> => request<T>({
  baseURL: process.env.VITE_SYSTEM_API,
  ...o,
}, i)
